package com.zhc.validate.test;

import com.zhc.validate.entity.Task;
import com.zhc.validate.handler.TaskHandler;

import java.util.Queue;

public class Main {
    public static void main(String[] args) {
        Queue<Task> tasks = Task.tasks;
        while (!tasks.isEmpty()) {
            Task task = tasks.poll();
            TaskHandler.handle(task);
        }
    }
}